<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>博客管理</title>
		<link rel="stylesheet" href="css/layui.css" media="all">
		<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="js/angularJS/angular.min.js"></script>
		<script type="text/javascript" src="js/base.js"></script>
		<script type="text/javascript" src="js/service/blogService.js"></script>
		<script type="text/javascript" src="js/service/blogTypeService.js"></script>
		<script type="text/javascript" src="js/controller/baseController.js"></script>
		<script type="text/javascript" src="js/controller/blogController.js"></script>
	</head>

	<body ng-app="blogManager" ng-controller="blogController" ng-init="pageInit(1,3)">

		<div style="margin-left: 20px;">
			<a href="blog_update_add2.html"><button class="layui-btn">
  				<i class="layui-icon">&#xe608;</i> 添加
			</button></a>
			<button class="layui-btn" ng-click="del()">
  				<i class="layui-icon">&#xe640;</i> 删除
			</button>
			<input type="text" ng-model="searchEntity.title" name="title" style="width:240px;float: right;margin-right: 200px" class="layui-input">    
			<button class="layui-btn" ng-click="pageInit(1,3)"  style="float: right;margin-right: -350px">
				<i class="layui-icon">&#xe640;</i> 搜索
			</button>
		</div>

		<table class="layui-table" lay-even lay-skin="line">
			<colgroup>
				<col width="65">
				<col width="50">
				<col width="350">
				<col width="100">
				<col width="100">
				<col width="200">
				<col width="200">
				<col width="200">
			</colgroup>
			<thead>
				<tr>
					<th>选择</th>
					<th>ID</th>
					<th>博客标题</th>
					<th>浏览数</th>
					<th>评论数</th>
					<th>创建时间</th>
					<th>最后修改时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="blog in blogList">
					<td><input type="checkbox" ng-click="updateSelectOption($event,blog.blogId)"></td>
					<td>{{blog.blogId}}</td>
					<td>{{blog.title}}</td>
					<td>{{blog.clicknum}}</td>
					<td>{{blog.replynum}}</td> 
					<td>{{blog.createdate}}</td>
					<td>{{blog.updatedate}}</td>
					<td><a href="blog_update_add2.html#?blogId={{blog.blogId}}"><button type="button" class="layui-btn">修改</button></a></td>
				</tr>
			</tbody>
		</table>
		<!--分页  -->
		<div id="page"></div>
		<script src="js/layui.js"></script>
	</body>
	

</html>